package com.sakura.model;/**
 * Created by apple on 2019/3/25.
 */

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author jixd
 * @Description TODO
 * @Date 2019/3/25 3:02 PM
 * @Version 1.0
 **/
public class TableInfo {
    private String tableName;
    private Map<String, ColumnInfo> columns;
    //主键
    private List<ColumnInfo> primaryKeyList;

    public TableInfo(String tableName, Map<String, ColumnInfo> columns, ArrayList<ColumnInfo> primaryKeyList) {
        this.tableName = tableName;
        this.columns = columns;
        this.primaryKeyList = primaryKeyList;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Map<String, ColumnInfo> getColumns() {
        return columns;
    }

    public void setColumns(Map<String, ColumnInfo> columns) {
        this.columns = columns;
    }

    public List<ColumnInfo> getPrimaryKeyList() {
        return primaryKeyList;
    }

    public void setPrimaryKeyList(List<ColumnInfo> primaryKeyList) {
        this.primaryKeyList = primaryKeyList;
    }
}
